import request from "@/utils/request";

/**
 * 问题反馈单api接口集合
 * @method getList 列表
 * @method postAdd 新增
 * @method putEdit 修改
 * @method deleteDel 删除
 */

export function apiGetList(params,loading) {
    return request({
        url: "/mes/problemFeedbackController/grid",
        method: "get",
        params,
        autoUntie: false,
        loading
    });
}
export function postAdd(data,loading) {
    return request({
        url: "/mes/problemFeedbackController/add",
        method: "post",
        data: data,
        loading
    });
}
export function putEdit(data,loading) {
    return request({
        url: "/mes/problemFeedbackController/edit",
        method: "put",
        data: data,
        loading
    });
}
export function deleteDel(ids,loading) {
    return request({
        url: "/mes/problemFeedbackController/" + ids,
        method: "delete",
        loading
    });
}
export function getObject(id,loading){
    return request({
        url: "/mes/problemFeedbackController/" + id,
        method:'get',
        loading
    });
}
export function getProcessQunlityList(params,loading) {
    return request({
        url: "/mes/processQualityController/grid",
        method: "get",
        params,
        loading
    });
}
export function getProcessRecordList(params,loading) {
    return request({
        url: "/mes/produceRecordController/grid",
        method: "get",
        params,
        loading
    });
}
export function addProcessRecord(params,loading) {
    return request({
        url: "/mes/produceRecordController/add",
        method: "post",
        data: params,
        loading
    });
}
export function editProcessRecord(params,loading) {
    return request({
        url: "/mes/produceRecordController/edit",
        method: "put",
        data: params,
        loading
    });
}
export function deleteProcessRecord(ids,loading) {
    return request({
        url: "/mes/produceRecordController/"+ids,
        method: "delete",
        loading
    });
}
export function addProcessQunlity(params,loading) {
    return request({
        url: "/mes/processQualityController/add",
        method: "post",
        data: params,
        loading
    });
}
export function editProcessQunlity(params,loading) {
    return request({
        url: "/mes/processQualityController/edit",
        method: "put",
        data: params,
        loading
    });
}
export function deleteProcessQunlity(ids,loading) {
    return request({
        url: "/mes/processQualityController/"+ids,
        method: "delete",
        loading
    });
}